package cn.com.test.common.bean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	public static void main(String[] args) throws Exception {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("test/beanConfig.xml");
		Email email = (Email) applicationContext.getBean("email");
		System.out.println(email.toString());
		email.destroy();

	}
}
